/*      > C.Strnpcpy    - copy a string, returning a pointer to the end */

#include <ctype.h>
#include "utils.h"

char *strnpcpy (char *s, const char *t, int n)
{
        while ( --n >= 0 && ( *s = *t ) != '\0' )
        {
                ++s;
                ++t;
        }

        return (s);
}
